<meta name="content-type" content="text/html; charset=UTF-8" />
<!--#if(totalspeakers== null || totalspeakers==0)-->
<div class="panel-body">
	<p>没有符合条件的数据</p>
</div>
<!--#else-->
<!--#var(LiftClub liftClub, PaginatedList<LiftClub> liftClubs)-->
<table class="table table-bordered table-hover table-condensed tb"
	style="text-align: center">
	<tr>
		<!-- <td >活动编号</td> -->
		<td class="tb-chose"><input id="chkallIds" type="checkbox" /></td>
		<td class="tb-time">主题</td>
		<td class="tb-teacher">状态</td>
		<td class="tb-teacher">老师</td>
		<td class="tb-teacher">负责人</td>
		<td>场地</td>
		<td class="tb-time">开始时间</td>
		<td class="tb-time">结束时间</td>
	</tr>
	<!--#foreach(liftClub in liftClubs)-->
	<tr>
		<!-- <td>${liftClub.id}</td> -->
		<td><input name="chk_name" type="checkbox" value="${liftClub.id}" /></td>
		<td><a href="yueyogaAdmin/toLiftClubDetail.jhtml?id=${liftClub.id}">${liftClub.name}</a></td>
		<td style="text-align: center; vertical-align: middle;">
			<!-- #if(liftClub.status == 0) --> 
				准备中
			<!-- #else(liftClub.status == 1) -->
				进行中
			<!-- #else(liftClub.status == 2) --> 
				活动结束
			<!-- #else(liftClub.status == 3) -->
				活动取消 
			<!-- #end -->
		</td>
		<td>${liftClub.co0name}</td>
		<td>${liftClub.yudname==null?liftClub.username:liftClub.yudname}</td>
		<td>${liftClub.placename}</td>
		<td>${liftClub.startdate.substring(0,16)}</td>
		<td>${liftClub.enddate.substring(0,16)}</td>
	<tr>
		<!--#end-->
</table>
<div class="container table-responsive" style="margin-left: -5px;">
	<!--
		#set(
		pager = liftClubs.pager,
		totalResults = pager.getCountOfTotalResults(),
		totalPages = pager.getCountOfTotalPages() * 1,
		pageSize = pager.pageSize,
		pageNo = pager.pageNo,
		prePageNo = pager.getPrevPageNo(),
		nextPageNo = pager.getNextPageNo()
		)
		-->
	<div class="div_page main_div_page">
		<ul class="pagination">
			<li><a href="javascript:void(0);"
				onclick="changePage(${1})">首页</a></li>
			<!-- #if(pageNo==1) -->
			<li class="disabled"><a href="javascript:void(0);">上一页</a></li>
			<!-- #else -->
			<li><a href="javascript:void(0);"
				onclick="changePage(${prePageNo})">上一页</a></li>
			<!-- #end -->
			<!-- #if(pageNo==totalPages) -->
			<li class="disabled"><a href="javascript:void(0);">下一页</a></li>
			<!-- #else -->
			<li><a href="javascript:void(0);"
				onclick="changePage(${nextPageNo})">下一页</a></li>
			<!-- #end -->
			<li><a href="javascript:void(0);"
				onclick="changePage(${totalPages})">尾页</a></li>
			<li><a>第<input id="txtPageNumber" value="${pageNo}"
					onkeydown="this.value=this.value.replace(/\D/g,'')"
					onkeyup="changePage(this.value)"
					onafterpaste="this.value=this.value.replace(/\D/g,'')" type="text" />页&nbsp;~&nbsp;${totalPages}页/${totalResults}条
			</a></li>
		</ul>
	</div>
</div>
<!--#end-->
<script>
	function changePage(value) {
		value = value * 1;
		var totalPages = '${totalPages}';
		if (value > totalPages) {
			value = totalPages;
		} else if (value < 1) {
			value = 1;
		}
		$("#txtPageNumber").val(value);
		$("input[name='pageNo']").val(value);
		document.liftclubForm.submit();
	}
</script>